package cn.itcast.extends_;

/**
 * @title: Grandpa
 * @Author Zhou
 * @Date: 2022/1/26 14:51
 * @Version 1.0
 */
public class Grandpa {
    String name = "爷爷";
    String hobby = "旅游";
    int num;

    public Grandpa() {
        super();
        System.out.println("爷爷的构造器");
    }

    public Grandpa(int num) {
        System.out.println("爷爷的有参构造器,num=" + num);
    }


}
